import Layout from "../pages/Layout";
import Login from "../pages/Login";
import PaperEvaluation from "../pages/PaperEvaluation/index.js";
// import StudentList from "../pages/StudentList"
import ArticleEvaluation from "../pages/articleEvaluation/index.js"
import Home from "../pages/Home"
import { createBrowserRouter, Navigate } from 'react-router-dom'

const router = createBrowserRouter([
    {
        path: '/',
        element: <Layout />,
        children: [
            {
                index: true,
                element: <Navigate to="/home" replace />
            },
            {
                path: '/home',
                element: <Home />
            },
            {
                path: '/paperEvaluation',
                element: <PaperEvaluation />
            },
            {
                path: '/articleEvaluation',
                element: <ArticleEvaluation />
            }
        ]
    },
    {
        path: '/login',
        element: <Login />
    }
])

export default router